<div class="panel panel-success">
	<div class="panel-heading"><h3 class="panel-title">哇咔后台管理系统--商户结算管理</h3></div>
	<div class="panel-body">
		<div class="row">
			<div class="col-md-4">商户结算管理功能说明</div>
			<div class="col-md-3">
				<div class="input-group">
					<span class="input-group-addon">开始日期</span>
					<input type="date" class="form-control input-sm" uib-datepicker-popup ng-model="searchs.start" is-open="popup1.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close"/>
					<span class="input-group-btn">
						<button type="button" class="btn btn-default" ng-click="calendar1()" style="margin-top:1px;padding: 3px 15px">
							<i class="fa fa-calendar"></i>
						</button>
					</span>
				</div>
			</div>
			<div class="col-md-3">
				<div class="input-group">
					<span class="input-group-addon">结束日期</span>
					<input type="date" class="form-control input-sm" uib-datepicker-popup ng-model="searchs.end" is-open="popup2.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close"/>
					<span class="input-group-btn">
						<button type="button" class="btn btn-default" ng-click="calendar2()" style="margin-top:1px;padding: 3px 15px">
							<i class="fa fa-calendar"></i>
						</button>
					</span>
				</div>
			</div>
			<div class="col-md-1"><button class="btn btn-success btn-sm btn-block" ng-click="searchs()">查询</button></div>
			<div class="col-md-1"><button class="btn btn-default btn-sm btn-block">导出</button></div>
		</div>
	</div>
	<table class="table table-bordered table-hover">
		<thead>
		<tr>
			<th class="text-center"><label><input type="checkbox" ng-model="selectAll"> 全选</label></th>
			<th class="text-center">店铺名称</th>
			<th class="text-center">开户银行</th>
			<th class="text-center">开户姓名</th>
			<th class="text-center">银行帐号</th>
			<th class="text-center">统计金额</th>
			<th class="text-center">佣金比例</th>
			<th class="text-center">扣除佣金</th>
			<th class="text-center">结算金额</th>
			<th class="text-center">结算操作</th>
		</tr>
		</thead>
		<tbody>
		<tr ng-repeat="rows in settleList">
			<td class="text-center"><input type="checkbox" ng-checked="selectAll" ng-model="x" ng-click="chk(rows.sid,x)" value="{{rows.sid}}"></td>
			<td>{{rows.title}}</td>
			<td>{{rows.bank_name}}</td>
			<td>{{rows.bank_user}}</td>
			<td>{{rows.bank_code}}</td>
			<td class="text-right">￥{{rows.amount}}</td>
			<td class="text-center">{{rows.fee*100}}%</td>
			<td class="text-right">￥{{rows.fees}}</td>
			<td class="text-right">￥{{rows.amount - rows.fees}}</td>
			<td ng-if="rows.button=='checkWithdraw'" my-widget="checkWithdraw" for-sid="{{rows.sid}}"></td>
			<td ng-if="rows.button=='null'"></td>
		</tr>
		</tbody>
		<tfoot>
		<tr>
			<td class="text-center"><label><input type="checkbox" ng-model="selectAll"> 全选</label></td>
			<td colspan="8"></td>
			<td my-widget="checkWithdrawAll"></td>
		</tr>
		</tfoot>
	</table>
</div>